package com.branches.chapeter_4;

public class FactoryComsumer {
    public static void main(String[] args) throws InterruptedException {
        Product p = new Product();
        Thread factoryThread = new Thread(new Factory(p));
        Thread c1 = new Thread(new Comsumer(p, "c1"));
        Thread c2 = new Thread(new Comsumer(p, "c2"));
        Thread c3 = new Thread(new Comsumer(p, "c3"));

        factoryThread.start();
        c1.start();
        c2.start();
        c3.start();

    }
}
